<div id="content" ng-app="SJ-APP">
    <div class="outer" ng-controller="contest_file_list_controller">
        <div class="inner bg-light lter">
            <div class="row" style="padding: 20px 0;">
                <div class="col-lg-12">
                    <div class="box">
                        <header>
                            <div class="icons">
                                <i class="fa icon-edit"></i>
                            </div>
                            <h5>@{contestRefer}@ / @{fileName}@</h5>

                            <!-- .toolbar -->
                            <div class="toolbar">
                                <nav style="padding: 8px;">
                                    <a href="javascript:;" class="btn btn-default btn-xs collapse-box">
                                        <i class="fa icon-minus fa-minus"></i>
                                    </a>
                                </nav>
                            </div>
                            <!-- /.toolbar -->
                        </header>
                        <div class="file-navigation">
                            <div class="breadcrumb clearfix">
                                <span class="repo-root js-repo-root">
                                    <span
                                            class="js-path-segment"><a ng-href="@{'/contests/contest/file_list?contestId=' + contestId}@"><span>@{contestRefer}@ </span></a></span>
                                </span>
                                <div ng-hide="true" style="display: none;">
                                    <span
                                            class="separator">/</span>
                                    <strong class="final-path">kkkk</strong>
                                </div>
                                <span
                                        class="separator">/</span>

                                <input type="text" class="form-control js-blob-filename js-breadcrumb-nav"
                                       name="filename" placeholder="Name your file…"
                                       aria-label="Name your file…" ng-model="fileName" ng-keydown="handleInputKeyUp($event)" />
                                <span class="editor-abort">或 <span ng-click="resetFileName()" style="cursor: pointer;color: #337ab7;">取消</span></span>
                            </div>
                        </div>

                        <div class="clearfix"></div>

                        <!-- .BODY -->
                        <div class="body collapse in" id="colorPickerBlock" aria-expanded="true">
                            <div class="form-horizontal" id="userForm">
                                <div class="form-group">
                                    <textarea id="code" name="code" style="display: none">{{fileContent}}</textarea>
                                </div>

                                <div class="form-actions no-margin-bottom">
                                    <input type="submit" value="取消" class="btn btn btn-default" ng-click="cancelSet()">
                                    <input type="submit" value="提交" class="btn btn-primary" ng-click="saveContent()" style="margin-left: 10px;">
                                </div>
                            </div>
                        </div>
                        <!-- /.BODY -->

                    </div>
                </div>


            <link rel="stylesheet" href="/lib/bootstrap-tagsinput-master/src/bootstrap-tagsinput.css">
            <link rel="stylesheet" href="/lib/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.css">
            <script type="text/javascript" src="/js/angular.min.js"></script>
            <script type="text/javascript" src="/js/app.js"></script>

            <link rel="stylesheet" href="/css/contest/main.css"/>


            <link rel="stylesheet"
                  href="/contest_public/assets/lib/dataTables/css/dataTables.bootstrap.css"/>
            <script src="/contest_public/assets/lib/dataTables/js/jquery.dataTables.js" type="text/javascript"></script>
            <script src="/contest_public/assets/lib/dataTables/js/dataTables.bootstrap.js" type="text/javascript"></script>


                <!-- Font Awesome -->
                <link rel="stylesheet" href="/contest_public/assets/css/font-awesome/4.2.0/css/font-awesome.min.css">


                <script type="text/javascript">
                    var contestId = '{{id}}';
                    var contestRefer = '{{refer}}';
                    var fileName = '{{fileName}}';
                    var fileSize = '{{fileSize}}';





                </script>
                <style>
                    .CodeMirror {
                        height: 600px !important;
                        border-top: 1px solid black;
                        border-bottom: 1px solid black;
                    }
                </style>

                <link rel="stylesheet" href="/js/codemirror-5.22.0/lib/codemirror.css">
                <script src="/js/codemirror-5.22.0/lib/codemirror.js"></script>
                <script src="/js/codemirror-5.22.0/addon/selection/selection-pointer.js"></script>
                <script src="/js/codemirror-5.22.0/mode/xml/xml.js"></script>
                <script src="/js/codemirror-5.22.0/mode/javascript/javascript.js"></script>
                <script src="/js/codemirror-5.22.0/mode/css/css.js"></script>
                <script src="/js/codemirror-5.22.0/mode/vbscript/vbscript.js"></script>
                <script src="/js/codemirror-5.22.0/mode/htmlmixed/htmlmixed.js"></script>
                <link rel="stylesheet" href="/js/codemirror-5.22.0/theme/night.css">

                <script type="text/javascript" src="/js/contest/edit/file_edit.js?dt=4432"></script>
                <script>
//                    var oldScript = ''
//                    script = document.createElement("script");
//                    script.type = "text/javascript";
//                    script.id = 'cy_cmt_num';
//                    script.src = '/js/contest/edit/file_edit.js?a=' + new Date().getTime();
//                    if (typeof fun === "function") {
//                        script.onload = fun;
//                    }
//                    var headObj = document.getElementsByTagName("head")[0];
//                    if (!oldScript) {
//                        oldScript = headObj.appendChild(script);
//                    }else{
//                        headObj.replaceChild(script,oldScript);
//                        oldScript = script;
//                    }

                </script>

                <link rel="stylesheet" href="/css/contest/edit_main/main.css?a=1234"/>

            </div><!-- /.row -->
        </div>
    </div><!-- /.outer -->
</div><!-- /#content -->